<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="userId" name="userId" type="hidden">

<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">选择类型(学生或老师)：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<select id="userType" name="userType" class="form-control">-->
<!--										<option value="">请选择</option>-->
<!--										<option value="0">学生</option>-->
<!--										<option value="1">老师</option>-->
<!--										<option value="2">讲师</option>-->
<!--									</select>-->
<!--								</div>-->
<!--							</div>-->

							<div class="form-group">
								<label class="col-sm-3 control-label">姓名：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用户名：</label>
								<div class="col-sm-8">
									<input id="username" name="username" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">密码：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control"
										type="password">
								</div>
							</div>
<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">所属机构：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<select id="orgId" name="orgId" class="form-control">-->
<!--										<option value="">请选择</option>-->
<!--										<option th:each="item : ${organizationNews}"  th:value="${item.id}" th:text="${item.name}"></option>-->
<!--									</select>-->
<!--								</div>-->
<!--							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">手机号码：</label>
								<div class="col-sm-8">
									<input id="mobile" name="mobile" class="form-control"
										   type="number">
								</div>
							</div>
<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">E-mail：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<input id="email" name="email" class="form-control"-->
<!--										type="email">-->
<!--								</div>-->
<!--							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">性别：</label>
								<div class="col-sm-8">
									<select id="sex" name="sex" class="form-control">
										<option value="">请选择</option>
										<option value="0">未知</option>
										<option value="1">男</option>
										<option value="2">女</option>
									</select>
								</div>
							</div>

<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">会员类型：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<select id="type" name="type" class="form-control">-->
<!--										<option value="">请选择</option>-->
<!--										<option value="0">个人会员</option>-->
<!--										<option value="1">机构会员</option>-->
<!--										<option value="2">运营人员</option>-->
<!--									</select>-->
<!--								</div>-->
<!--							</div>-->

<!--							<div id="insertion"></div>-->

<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">学习、工作经历(800字)：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<textarea class="form-control" name="experience"  id="experience" maxlength="800"></textarea>-->
<!--								</div>-->
<!--							</div>-->

							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										name="status" value="1" /> 正常
									</label> <label class="radio-inline"> <input type="radio"
										name="status" value="0" /> 禁用
									</label>
								</div>
							</div>
							<input type="hidden" name="roleIds" id="roleIds">
							<div class="form-group">
								<label class="col-sm-3 control-label">角色</label>
								<div class="col-sm-8">
									<label th:each="role:${roles}" class="checkbox-inline">
										<input name="role" type="checkbox" th:value="${role.id}"
										th:text="${role.roleName}">
									</label>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="button" onclick="save()" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/webJs/sys/user/add.js">
	</script>
</body>
</html>
